<?php
/**
 * Created by PhpStorm.
 * User: alien
 * Date: 2015-07-11-0011
 * Time: 10:37
 * ©2015 A Word CoreTeam. All rights reserved.
 */
//***********数据库信息********************
$host = "127.0.0.1:3306";   //数据库连接地址
$database  = "database";    //数据库名称
$name = "alientest";      //数据库账号
$pw = "ABC123456";      //数据库密码
//***********数据库信息********************

mysql_connect("$host","$user_name","$user_pw");//连接数据库
mysql_select_db("$database");//选择数据库
?>